package com.zr.serviceimpl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zr.dao.TreeDao;
import com.zr.model.Cfunction;
import com.zr.service.TreeService;

import net.sf.json.JSONArray;

@Service("treeService")
public class TreeServiceImpl implements TreeService{

	@Resource
	private TreeDao treeDao;
	@Override
	public JSONArray getFunctionsByPid(int pid, String fid) {
		return treeDao.getCurrentFunctionBypid(pid, fid);
	}

	@Override
	public String getpidByuid(int uid) {
		
		return treeDao.getpidByuid(uid);
	}

}
